package com.bsoft.gol.hcs.specialist.dao;

import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import ctd.persistence.support.hibernate.HibernateSupportDelegateDAO;
import com.bsoft.gol.hcs.specialist.entity.FusGroupChronicRecordStagesProperty;

import java.util.List;

public abstract class FollowUpStateDao extends HibernateSupportDelegateDAO<FusGroupChronicRecordStagesProperty> {

    @DAOMethod(sql = " from FusGroupChronicRecordStagesProperty where teamChronicGroupId = :teamChronicGroupId AND diseaseTypeId = :diseaseTypeId AND organization_id = :organizationId")
    public abstract List<FusGroupChronicRecordStagesProperty> queryStages(@DAOParam("diseaseTypeId")Long diseaseTypeId,
                                                                          @DAOParam("teamChronicGroupId")Long teamChronicGroupId,
                                                                          @DAOParam("organizationId") String organizationId
                                                                          );
}//@DAOParam("diseasePeriod")List<DiseasePeriodEntity> diseasePeriod
